﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace BbzaApi.Core
{
    /// <summary>
    /// Represents the location of an exchange.
    /// </summary>
    [XmlType("location")]
    public class ExchangeLocation
    {
        /// <summary>
        /// Gets a value indicating the province of the exchange
        /// </summary>
        [XmlElement("province")]
        public string Province { get; set; }

        /// <summary>
        /// Gets a value indicating the district of the exchange
        /// </summary>
        [XmlElement("district")]
        public string District { get; set; }

        /// <summary>
        /// Gets a value indicating the suburb of the exchange
        /// </summary>
        [XmlElement("suburb")]
        public string Suburb { get; set; }

        /// <summary>
        /// Gets a value indicating the acccuracy of the location.
        /// </summary>
        /// <remarks>
        /// 'approx' indicates this is an estimate of the exchange location
        /// based on the magisterial location. 
        /// 
        /// 'exact' indicates this is the location of the exchange.
        /// </remarks>
        [XmlElement("acccuracy")]
        public string Acccuracy { get; set; }

        /// <summary>
        /// Gets a value indicating the Latitude of the exchange
        /// </summary>
        [XmlElement("latitude")]
        public string Latitude { get; set; }

        /// <summary>
        /// Gets a value indicating the Longitude of the exchange 
        /// </summary>
        [XmlElement("longitude")]
        public string Longitude { get; set; }
    }
}
